import scrapy


class TcSpider(scrapy.Spider):
    name = "tc"
    allowed_domains = ["ja.58.com"]
    start_urls = ["https://ja.58.com/sou/?key=%E5%89%8D%E7%AB%AF%E5%BC%80%E5%8F%91&classpolicy=classify_B%2Cuuid_5PjcsjDSPBS8KhZPRmE7wi7PAmG6Miya&search_uuid=5PjcsjDSPBS8KhZPRmE7wi7PAmG6Miya&search_type=input"]

    def parse(self, response):
        # 字符串
        # content = response.text
        # # 二进制
        # content = response.body
        # print("=====================")
        #
        # print(content)
        span=response.xpath('//div[@id="filter"]/div[@class="tabs"]/a/span')
        print("=====================")
        print(span.extract())



